package com.shijie.sjoj.web.controller;

import com.shijie.sjoj.model.api.user.UserService;
import com.shijie.sjoj.model.base.ResponseBean;
import com.shijie.sjoj.model.pojo.entity.User;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 登录注册
 *
 * @author ZSJ
 */
@Slf4j
@RestController
@RequiredArgsConstructor
public class LoginRegisterController {

    @DubboReference
    private final UserService userService;

    @PostMapping("/register")
    public ResponseBean<Void> register(@RequestBody User user) {


        return ResponseBean.success();
    }


}
